package com.usian.feign;

import com.usian.pojo.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "usian-cart-service")
public interface CartFeign {

    @RequestMapping("selectCartByUserId")
    Map<String, TbItem> selectCartByUserId(@RequestParam String userId);

    @RequestMapping("insertItemToRedis")
    public boolean insertItemToRedis(@RequestBody Map<String, TbItem> cart, @RequestParam String userId);
}
